<template>
	<div
		class="rs_item"
		@click="to_business_detail"
	>
		<div>
			<img :src="optimization.business_pic">
		</div>
		<span class="title1 c">{{optimization.bussinss_name}}</span>
	</div>

</template>

<script>
export default {
	name: 'OptimizationStore',
	props: {
		optimization: {
			type: Object,
			default: () => {
				return {
					id: 1,
					business_pic: require('@/static/home/pd-004.png'),
					bussiness_name: '别芙兰一胖子...',
					discount: 4.5
				}
			}
		}
	},
	data () {
		return {

		}
	},
	computed: {
		business_id () {
			return this.optimization.id
		}
	},
	methods: {
		/*
		* 跳转至商家详情页
		* 作者：gzt
		* 时间：2019-11-27 21:25:38
		*/
		to_business_detail () {
			this.$router.push(
				{
					name: 'shcp_detail',
					params: { id: this.business_id }
				}
			)
		}
	}
}
</script>

<style>
</style>
